package com.lotter.api.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.lotter.pay.Alipay;
/**
 * 测试支付宝支付-没什么实际意义
 * @author Administrator
 *
 */
@Controller
@RequestMapping(value="/website/testpay")
public class TestPayController {

	@RequestMapping(value="/pay",method =RequestMethod.GET)
	public  void pay(HttpServletRequest httpRequest, HttpServletResponse httpResponse){
		try {
			Alipay.pay(httpRequest, httpResponse,0.1,"测试","http://localhost:8080/index.jsp");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
